package work.konbai.basic.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.core.tool.utils.DateUtil;

import java.io.Serializable;
import java.util.Date;

/**
 * @author KonBAI
 * @version 1.0
 * Create by 2021/2/23 15:48
 */
@Data
public class MemberVO implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;

	/**
	 * 真实名称
	 */
	@ApiModelProperty(value = "真实名称")
	private String realName;

	/**
	 * 性别
	 */
	@ApiModelProperty(value = "性别")
	private Integer sex;

	/**
	 * 加入时间
	 */
	@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
	@ApiModelProperty(value = "加入时间")
	private Date joinTime;
}
